﻿
    <link href="<{$config.weburl}>/templates/default/css/buying.css?t=<{$now_time}>" rel="stylesheet" media="screen" type="text/css" />
    <link href="<{$config.weburl}>/templates/default/css/gynei.css?t=<{$now_time}>" rel="stylesheet" media="screen" type="text/css" />
        <!-- 中间内容 -->
        <div class="g-bd" data-image="" data-color="" style="background-position: 50% 50px;">
            <div class="g-bdc">
                <div class="g-mn">
                    <!--[if IE]>
                    <style>
                    .line2-left {
                      width: 1000px;
                      float: left;
                    }
                    .m-box-col2y {
                      background-image: url('');
                      background-repeat: repeat-y;
                      background-position: 966px 0;
                      zoom: 1;
                    }
                    </style>
                    <![endif]--> 
                    <div class="m-box m-box-col2yp m-box-goods">
                        <div class="hd">       
                            <p class="m-crm">
                                <a class="grown1" href="/">首页</a>
                                <span class="arrow1">&gt;</span>
                                <a href="<{$config.weburl}>/?m=product&s=list&id=<{$cat.catid}>"><{if !empty($cat.cat)}><{$cat.cat}><{else}>热门推荐<{/if}></a>
                            </p>
                    <div class="clean_float"></div>

                            <div class="search-filter">
                                <div class="filter">
                                    <div class="filter_item">
                                        <div class="filter_name">城市：</div>
                                        <div class="filter_all">
                                            <a href="<{$config.weburl}>/?m=product&s=list" <{if $get_city == '' }>  class="on" <{/if}> >全部</a><span class="line">|</span></div>
                                        <div class="filter_con">
                                            <{foreach item=vo from=$all_city key=key}>
                                            <{if $vo.is_city == 1}>
                                            <a href="<{$config.weburl}>/?m=product&s=list&city=<{$key}>" <{if $key ==$get_city }>  class="on" <{/if}>  ><{$vo.name}></a><span class="line">|</span>
                                            <{else}>
                                            <a href="<{$config.weburl}>/?m=product&s=list&province=<{$key}>" <{if $key ==$get_city }>  class="on" <{/if}>  ><{$vo.name}></a><span class="line">|</span>
                                            <{/if}>

                                            <{/foreach}>
                                        </div>

                                    </div>
                                </div>
                            </div>
                            <div class="search-filter">
                                <div class="filter">
                                    <div class="filter_item">
                                        <div class="filter_name">类型：</div>
                                        <div class="filter_all">
                                            <{if !empty($is_province)}>
                                            <a href="<{$config.weburl}>/?m=product&s=list<{if !empty($get_city)}>&province=<{$get_city}> <{/if}>"  <{if empty($cat.catid) }>  class="on" <{/if}> >全部</a><span class="line">|</span></div>
                                            <{else}>
                                            <a href="<{$config.weburl}>/?m=product&s=list<{if !empty($get_city)}>&city=<{$get_city}> <{/if}>"  <{if empty($cat.catid) }>  class="on" <{/if}> >全部</a><span class="line">|</span></div>
                                            <{/if}>

                                        <div class="filter_con">
                                            <{foreach item=vo from=$cat_list}>
                                            <{if !empty($is_province)}>
                                            <a href="<{$config.weburl}>/?m=product&s=list&id=<{$vo.catid}><{if !empty($get_city)}>&province=<{$get_city}> <{/if}>" <{if $catname[0] ==$vo.catid || strstr($id,$vo.catid) }>  class="on" <{/if}>   ><{$vo.cat}></a><span class="line">|</span>
                                            <{else}>
                                            <a href="<{$config.weburl}>/?m=product&s=list&id=<{$vo.catid}><{if !empty($get_city)}>&city=<{$get_city}> <{/if}>" <{if $catname[0] ==$vo.catid || strstr($id,$vo.catid) }>  class="on" <{/if}>   ><{$vo.cat}></a><span class="line">|</span>
                                            <{/if}>
                                            <{/foreach}>
                                        </div>	

                                    </div>
                                </div>
                            </div>
                           <{if !empty($sub_cat)}>
                            <div class="search-filter">
                                <div class="filter">
                                    <div class="filter_item">
                                        <div class="filter_name">子类型：</div>
                                        <div class="filter_con" style="padding-left: 0px;">
                                            <{foreach item=vo from=$sub_cat}>
                                            <{if !empty($is_province)}>
                                            <a href="<{$config.weburl}>/?m=product&s=list&id=<{$vo.catid}><{if !empty($get_city)}>&province=<{$get_city}> <{/if}>"  <{if $cat.catid ==$vo.catid }>  class="on" <{/if}>  ><{$vo.cat}></a><span class="line">|</span>
                                            <{else}>
                                            <a href="<{$config.weburl}>/?m=product&s=list&id=<{$vo.catid}><{if !empty($get_city)}>&city=<{$get_city}> <{/if}>"  <{if $cat.catid ==$vo.catid }>  class="on" <{/if}>  ><{$vo.cat}></a><span class="line">|</span>
                                            <{/if}>
                                            <{/foreach}>
                                        </div>

                                    </div>
                                </div>
                            </div>
                            <{/if}>

                            <div class="search-filter">
                                <div class="filter">
                                    <div class="filter_item">
                                        <div class="filter_name">其他：</div>
                                        <div class="filter_all">
                                            <{if !empty($is_province)}>
                                            <a href="<{$config.weburl}>/?m=product&s=list<{if !empty($get_city)}>&province=<{$get_city}><{/if}><{if !empty($id)}>&id=<{$id}><{/if}>" <{if empty($orderby) }>  class="on" <{/if}>   >全部</a><span class="line">|</span>
                                            <a href="<{$config.weburl}>/?m=product&s=list&orderby=3<{if !empty($get_city)}>&province=<{$get_city}><{/if}><{if !empty($id)}>&id=<{$id}><{/if}> " <{if  $orderby ==3 }>  class="on" <{/if}>   >更新时间</a><span class="line">|</span>
                                            <a href="<{$config.weburl}>/?m=product&s=list&orderby=4<{if !empty($get_city)}>&province=<{$get_city}><{/if}><{if !empty($id)}>&id=<{$id}><{/if}>" <{if  $orderby ==4 }>  class="on" <{/if}>   >价格高优先</a><span class="line">|</span>
                                            <a href="<{$config.weburl}>/?m=product&s=list&orderby=5<{if !empty($get_city)}>&province=<{$get_city}><{/if}><{if !empty($id)}>&id=<{$id}><{/if}>" <{if  $orderby ==5}>  class="on" <{/if}>   >价格低优先</a><span class="line">|</span>
                                            <{else}>
                                            <a href="<{$config.weburl}>/?m=product&s=list<{if !empty($get_city)}>&city=<{$get_city}><{/if}><{if !empty($id)}>&id=<{$id}><{/if}>" <{if empty($orderby) }>  class="on" <{/if}>   >全部</a><span class="line">|</span>
                                            <a href="<{$config.weburl}>/?m=product&s=list&orderby=3<{if !empty($get_city)}>&city=<{$get_city}><{/if}><{if !empty($id)}>&id=<{$id}><{/if}> " <{if  $orderby ==3 }>  class="on" <{/if}>   >更新时间</a><span class="line">|</span>
                                            <a href="<{$config.weburl}>/?m=product&s=list&orderby=4<{if !empty($get_city)}>&city=<{$get_city}><{/if}><{if !empty($id)}>&id=<{$id}><{/if}>" <{if  $orderby ==4 }>  class="on" <{/if}>   >价格高优先</a><span class="line">|</span>
                                            <a href="<{$config.weburl}>/?m=product&s=list&orderby=5<{if !empty($get_city)}>&city=<{$get_city}><{/if}><{if !empty($id)}>&id=<{$id}><{/if}>" <{if  $orderby ==5}>  class="on" <{/if}>   >价格低优先</a><span class="line">|</span>
                                            <{/if}>
                                    </div>
                                </div>
                            </div>

                        </div>

                        <!-- 正文 begin -->


                        <div class="underway">
                            <dl>

                                <{foreach item=vo from=$info.list}>
                                <dd class="">
                                    <p class="p1">
                                        <a class="fl" href="<{$config.weburl}>/?m=product&s=detail&id=<{$vo.id}>">
                                        <img class="fl" src="<{$vo.pic}>" alt="<{$vo.pname}>" width="190" height="260"></a>
                                    </p>
                                    <p class="p2"><a href="<{$config.weburl}>/?m=product&s=detail&id=<{$vo.id}>"><{$vo.pname|truncate:20:'...'}></a></p>
                                    <p class="p3">
                                        <span>¥<b><{$vo.price}></b> <b style="font-size: 12px; font-weight: normal;">起</b></span><em><{$vo.spot|get_spot_name|truncate:8:''}></em>
                                    </p>
                                    <{if $now_time > $vo.performance_end_time}>
                                    <p class="p4h" style="height: 40px;">
                                        <span class="dao"><{$vo.performance_start_time|date_format:"%Y-%m-%d"}></span>
                                        <a href="<{$config.weburl}>/?m=product&s=detail&id=<{$vo.id}>">立即购买</a>
                                    </p>
                                    <{else}>
                                    <p class="p4" style="height: 40px;">
                                        <span class="dao"><{$vo.performance_start_time|date_format:"%Y-%m-%d"}></span><a href="<{$config.weburl}>/?m=product&s=detail&id=<{$vo.id}>">立即购买</a>
                                    </p>
                                    <{/if}>
                                </dd>
                                <{/foreach}>

                            </dl>
                        </div>


                        <!--分页代码状态开始-->
                        <div class="main_mod_page clear" id="pageinfo" style="margin-left: 150px;">
                            <{$info.page}>
                        </div>
                        <!-- 正文 end -->
                    </div>
                </div>
            </div>
        </div>	



    <script type="text/javascript">

        $(function() {
            $(".underway dl dd .p4").hover(function() {
                $(this).animate({height: "90px"})
            }, function() {
                $(this).animate({height: "40px"})
            })
        })
    </script>
    <script>
        $(document).ready(function() {
            var attrid = $("#attrid").val();
            var destid = $("#destid").val();

            //属性选中
            var attrArr = attrid.split('_');
            for (i = 0; i < attrArr.length; i++)
            {
                $.STOURWEB.search_attr_selected(".filter_con", "a", attrArr[i], 'on');
            }

        });
    </script>
